package com.wxcms.ctrl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.fastjson.JSONObject;
import com.wxcms.domain.Equipment;
import com.wxcms.domain.SystemAccount;
import com.wxcms.service.MyWxCpService;
import com.wxcms.service.SystemAccountService;

import me.chanjar.weixin.cp.bean.WxCpUser;

@Controller
@RequestMapping("/i")
public class IController {
//	@Autowired
//	private MyWxCpService myWxCpService;
	@RequestMapping(value = "/")
	public ModelAndView index(){
		return new ModelAndView("index"); 
	}
	
	@RequestMapping(value = "/pcindex/{province}")
	public ModelAndView pcindex(@PathVariable String province){
		ModelAndView modelAndView = new ModelAndView("pcindex");
 
	 // myWxCpService.SyncDepartFromWeiXin();
		return modelAndView; 
		 
	}
	@RequestMapping(value = "/pcmain/{province}")
	public ModelAndView pcmain(@PathVariable String province){
		ModelAndView modelAndView = new ModelAndView("pcmain");
	    //	  myWxCpService.SyncDepartFromWeiXin();
		return modelAndView;  
	}
	

	
 
	
	
}
